#ifndef HEAD_H
#define HEAD_H
#include"database.h"
#include"stack.h"
int init_user_root_directory(MYSQL* conn, const char* user_name, DirStack* stack) ;
static int get_root_id_if_exists(MYSQL* conn, const char* user_name, int* root_id_out);
int cd_command(MYSQL* conn, DirStack* stack, const char* path, const char* user_name);
int touch_command(MYSQL* conn, const char* name, DirStack* stack, const char* hash, const char* user_name);
int mkdir_command(MYSQL* conn, DirStack* stack, const char* name, const char* user_name);
int rm_command(MYSQL* conn, const char* name, DirStack* stack, const char* user_name);
int ls_command(MYSQL* conn, DirStack* stack, const char* user_name, char* result);
int pwd_command(MYSQL* conn, DirStack* stack, const char* user_name, char* result);

#endif
